home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / apache.vim < prev    next >
Encoding:
Text File  |  2001-09-02  |  9.2 KB  |  155 lines

  1. " Vim syntax file
  2. " This is a GENERATED FILE. Please always refer to source file at the URI below.
  3. " Language: Apache configuration (httpd.conf, srm.conf, access.conf, .htaccess)
  4. " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
  5. " Last Change: 2001 Sep 02
  6. " URI: http://physics.muni.cz/~yeti/download/apache.vim
  7.  
  8.  
  9. " Setup
  10. if version >= 600
  11.   if exists("b:current_syntax")
  12.     finish
  13.   endif
  14. else
  15.   syntax clear
  16. endif
  17.  
  18. if version >= 600
  19.   command -nargs=1 SetIsk setlocal iskeyword=<args>
  20. else
  21.   command -nargs=1 SetIsk set iskeyword=<args>
  22. endif
  23. SetIsk @,48-57,-,+,_
  24. delcommand SetIsk
  25.  
  26. syn case ignore
  27.  
  28. " Base constructs
  29. syn match apacheComment "^\s*#.*$" contains=apacheFixme
  30. syn case match
  31. syn keyword apacheFixme FIXME TODO XXX NOT
  32. syn case ignore
  33. syn match apacheAnything "\s[^>]*" contained
  34. syn match apacheError "\w\+" contained
  35. syn region apacheString start=+"+ end=+"+ skip=+\\\\\|\\\"+
  36.  
  37. " Core
  38. syn keyword apacheDeclaration AccessConfig AccessFileName AddDefaultCharset AddModule AuthName AuthType BindAddress BS2000Account ClearModuleList ContentDigest CoreDumpDirectory DefaultType DocumentRoot ErrorDocument ErrorLog Group HostNameLookups IdentityCheck Include KeepAlive KeepAliveTimeout LimitRequestBody LimitRequestFields LimitRequestFieldsize LimitRequestLine Listen ListenBacklog LockFile LogLevel MaxClients MaxKeepAliveRequests MaxRequestsPerChild MaxSpareServers MinSpareServers NameVirtualHost Options PidFile Port require ResourceConfig RLimitCPU RLimitMEM RLimitNPROC Satisfy ScoreBoardFile ScriptInterpreterSource SendBufferSize ServerAdmin ServerAlias ServerName ServerPath ServerRoot ServerSignature ServerTokens ServerType StartServers ThreadsPerChild ThreadStackSize TimeOut UseCanonicalName User
  39. syn keyword apacheOption Any All On Off Double EMail DNS Min Minimal OS Prod ProductOnly Full
  40. syn keyword apacheOption emerg alert crit error warn notice info debug
  41. syn keyword apacheOption registry script inetd standalone
  42. syn keyword apacheOptionOption ExecCGI FollowSymLinks Includes IncludesNoExec Indexes MultiViews SymLinksIfOwnerMatch
  43. syn keyword apacheOptionOption +ExecCGI +FollowSymLinks +Includes +IncludesNoExec +Indexes +MultiViews +SymLinksIfOwnerMatch
  44. syn keyword apacheOptionOption -ExecCGI -FollowSymLinks -Includes -IncludesNoExec -Indexes -MultiViews -SymLinksIfOwnerMatch
  45. syn keyword apacheOption user group valid-user
  46. syn case match
  47. syn keyword apacheMethodOption GET POST PUT DELETE CONNECT OPTIONS TRACE PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK contained
  48. syn case ignore
  49. syn match apacheSection "<\/\=\(Directory\|DirectoryMatch\|Files\|FilesMatch\|IfModule\|IfDefine\|Location\|LocationMatch\|VirtualHost\)\+.*>" contains=apacheAnything
  50. syn match apacheLimitSection "<\/\=\(Limit\|LimitExcept\)\+.*>" contains=apacheLimitSectionKeyword,apacheMethodOption,apacheError
  51. syn keyword apacheLimitSectionKeyword Limit LimitExcept contained
  52. syn match apacheAuthType "AuthType\s.*$" contains=apacheAuthTypeValue
  53. syn keyword apacheAuthTypeValue Basic Digest
  54. syn match apacheAllowOverride "AllowOverride\s.*$" contains=apacheAllowOverrideValue,apacheComment
  55. syn keyword apacheAllowOverrideValue AuthConfig FileInfo Indexes Limit Options contained
  56.  
  57. " Modules
  58. syn match apacheAllowDeny "Allow\s\+from.*$" contains=apacheAllowDenyValue,apacheComment
  59. syn match apacheAllowDeny "Deny\s\+from.*$" contains=apacheAllowDenyValue,apacheComment
  60. syn keyword apacheAllowDenyValue All None contained
  61. syn match apacheOrder "^\s*Order\s.*$" contains=apacheOrderValue,apacheComment
  62. syn keyword apacheOrderValue Deny Allow contained
  63. syn keyword apacheDeclaration Action Script
  64. syn keyword apacheDeclaration Alias AliasMatch Redirect RedirectMatch RedirectTemp RedirectPermanent ScriptAlias ScriptAliasMatch
  65. syn keyword apacheOption permanent temp seeother gone
  66. syn keyword apacheDeclaration AuthGroupFile AuthUserFile AuthAuthoritative
  67. syn keyword apacheDeclaration Anonymous Anonymous_Authoritative Anonymous_LogEmail Anonymous_MustGiveEmail Anonymous_NoUserID Anonymous_VerifyEmail
  68. syn keyword apacheDeclaration AuthDBGroupFile AuthDBUserFile AuthDBAuthoritative
  69. syn keyword apacheDeclaration AuthDBMGroupFile AuthDBMUserFile AuthDBMAuthoritative
  70. syn keyword apacheDeclaration AuthDigestFile AuthDigestGroupFile AuthDigestQop AuthDigestNonceLifetime AuthDigestNonceFormat AuthDigestNcCheck AuthDigestAlgorithm AuthDigestDomain
  71. syn keyword apacheOption none auth auth-int MD5 MD5-sess
  72. syn keyword apacheDeclaration AddAlt AddAltByEncoding AddAltByType AddDescription AddIcon AddIconByEncoding AddIconByType DefaultIcon FancyIndexing HeaderName IndexIgnore IndexOptions IndexOrderDefault ReadmeName
  73. syn keyword apacheOption DescriptionWidth FancyIndexing FoldersFirst IconHeight IconsAreLinks IconWidth NameWidth ScanHTMLTitles SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize
  74. syn keyword apacheOption Ascending Descending Name Date Size Description
  75. syn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase
  76. syn keyword apacheDeclaration MetaFiles MetaDir MetaSuffix
  77. syn keyword apacheDeclaration ScriptLog ScriptLogLength ScriptLogBuffer
  78. syn keyword apacheDeclaration Define
  79. syn keyword apacheDeclaration AuthDigestFile
  80. syn keyword apacheDeclaration DirectoryIndex
  81. syn keyword apacheDeclaration PassEnv SetEnv UnsetEnv
  82. syn keyword apacheDeclaration Example
  83. syn keyword apacheDeclaration ExpiresActive ExpiresByType ExpiresDefault
  84. syn keyword apacheDeclaration Header
  85. syn keyword apacheOption set unset append add
  86. syn keyword apacheDeclaration ImapMenu ImapDefault ImapBase
  87. syn keyword apacheOption none formatted semiformatted unformatted
  88. syn keyword apacheOption nocontent
  89. syn keyword apacheDeclaration XBitHack
  90. syn keyword apacheOption on off full
  91. syn keyword apacheDeclaration AddModuleInfo
  92. syn keyword apacheDeclaration ISAPIReadAheadBuffer ISAPILogNotSupported ISAPIAppendLogToErrors ISAPIAppendLogToQuery
  93. syn keyword apacheDeclaration AgentLog
  94. syn keyword apacheDeclaration CookieLog CustomLog LogFormat TransferLog
  95. syn keyword apacheDeclaration RefererIgnore RefererLog
  96. syn keyword apacheDeclaration AddCharset AddEncoding AddHandler AddLanguage AddType DefaultLanguage ForceType RemoveEncoding RemoveHandler RemoveType SetHandler TypesConfig
  97. syn keyword apacheDeclaration MimeMagicFile
  98. syn keyword apacheDeclaration MMapFile
  99. syn keyword apacheDeclaration CacheNegotiatedDocs LanguagePriority
  100. syn keyword apacheDeclaration ProxyRequests ProxyRemote ProxyPass ProxyPassReverse ProxyBlock AllowCONNECT ProxyReceiveBufferSize NoProxy ProxyDomain ProxyVia CacheRoot CacheSize CacheMaxExpire CacheDefaultExpire CacheLastModifiedFactor CacheGcInterval CacheDirLevels CacheDirLength CacheForceCompletion NoCache
  101. syn keyword apacheOption block
  102. syn keyword apacheDeclaration RewriteEngine RewriteOptions RewriteLog RewriteLogLevel RewriteLock RewriteMap RewriteBase RewriteCond RewriteRule
  103. syn keyword apacheOption inherit
  104. syn keyword apacheDeclaration RoamingAlias
  105. syn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase SetEnvIf SetEnvIfNoCase
  106. syn keyword apacheDeclaration LoadFile LoadModule
  107. syn keyword apacheDeclaration CheckSpelling
  108. syn keyword apacheDeclaration SSLPassPhraseDialog SSLMutex SSLRandomSeed SSLSessionCache SSLSessionCacheTimeout SSLEngine SSLProtocol SSLCipherSuite SSLCertificateFile SSLCertificateKeyFile SSLCertificateChainFile SSLCACertificatePath SSLCACertificateFile SSLCARevocationPath SSLCARevocationFile SSLVerifyClient SSLVerifyDepth SSLLog SSLLogLevel SSLOptions SSLRequireSSL SSLRequire
  109. syn keyword apacheOption StdEnvVars CompatEnvVars ExportCertData FakeBasicAuth StrictRequire OptRenegotiate
  110. syn keyword apacheOption +StdEnvVars +CompatEnvVars +ExportCertData +FakeBasicAuth +StrictRequire +OptRenegotiate
  111. syn keyword apacheOption -StdEnvVars -CompatEnvVars -ExportCertData -FakeBasicAuth -StrictRequire -OptRenegotiate
  112. syn keyword apacheOption builtin sem
  113. syn match apacheOption "\(file\|exec\|egd\|dbm\|shm\):"
  114. syn keyword apacheOption SSLv2 SSLv3 TLSv1 -SSLv2 -SSLv3 -TLSv1 +SSLv2 +SSLv3 +TLSv1
  115. syn keyword apacheOption optional require optional_no_ca
  116. syn keyword apacheDeclaration ExtendedStatus
  117. syn keyword apacheDeclaration UserDir
  118. syn keyword apacheDeclaration CookieExpires CookieName CookieTracking
  119. syn keyword apacheDeclaration VirtualDocumentRoot VirtualDocumentRootIP VirtualScriptAlias VirtualScriptAliasIP
  120.  
  121. " Define the default highlighting
  122. if version >= 508 || !exists("did_apache_syntax_inits")
  123.   if version < 508
  124.     let did_apache_syntax_inits = 1
  125.     command -nargs=+ HiLink hi link <args>
  126.   else
  127.     command -nargs=+ HiLink hi def link <args>
  128.   endif
  129.  
  130.   HiLink apacheAllowOverride       apacheDeclaration
  131.   HiLink apacheAllowOverrideValue  apacheOption
  132.   HiLink apacheAuthType           apacheDeclaration
  133.   HiLink apacheAuthTypeValue       apacheOption
  134.   HiLink apacheOptionOption       apacheOption
  135.   HiLink apacheDeclaration       Function
  136.   HiLink apacheAnything           apacheOption
  137.   HiLink apacheOption           Number
  138.   HiLink apacheComment           Comment
  139.   HiLink apacheFixme           Todo
  140.   HiLink apacheLimitSectionKeyword apacheLimitSection
  141.   HiLink apacheLimitSection       apacheSection
  142.   HiLink apacheSection           Label
  143.   HiLink apacheMethodOption       Type
  144.   HiLink apacheAllowDeny       Include
  145.   HiLink apacheAllowDenyValue       Identifier
  146.   HiLink apacheOrder           Special
  147.   HiLink apacheOrderValue       String
  148.   HiLink apacheString           Number
  149.   HiLink apacheError           Error
  150.  
  151.   delcommand HiLink
  152. endif
  153.  
  154. let b:current_syntax = "apache"
  155.